﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MenuPage.master" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="Left" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" language="javascript">
        function showmenu(id)
        {
            var tlist = id.substr(0, id.length - 5) + "list1";
            var list = document.getElementById(tlist);
            var menu = document.getElementById(id)//ctl00_CphMenu_RepGroup_ctl00_RepDetail_ctl00_list1
            if (list.style.display == "none")
            {
                document.getElementById(tlist).style.display = "block";
                menu.className = "nav_title1";
            } else
            {
                document.getElementById(tlist).style.display = "none";
                menu.className = "nav_title";
            }
        } 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphMenu" Runat="Server">
    <div id="left_nav">
        <asp:Repeater ID="RepGroup" runat="server" 
            onitemdatabound="RepGroup_ItemDataBound">
            <ItemTemplate>
                <div class="menu1" id="menu1"  runat="server" >
                    <%#Eval("module_name")%>
                </div>
                <div id="list1" class="content" runat="server" style="display: block">
                    <asp:Repeater runat="server" ID="RepDetail" >
                        <ItemTemplate>                        
                            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr class="content_li">
                                    <td class="pic">
                                        &nbsp;
                                    </td>
                                    <td>
                                        <a href="<%#Eval("module_url")%>" target="main">  <%#Eval("module_name")%></a>
                                    </td>
                                </tr>
                            </table>                        
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>

